package com.lanhao.aot.carrierintegration.geoapi;

public class GeoAPIUtil {
	// https://geoapi.dpd.cz
	// https://geoapi-test.dpd.cz
//	public static final String BASE_URL = "https://geoapi-test.dpd.cz";
	public static final String BASE_URL = "https://geoapi.dpd.cz";
	public static final String HEADER_NAME = "x-api-key";
	public static final String COUNTRY_CODE = "CZ";
	public static final String PICK_UP_ORDER_URL = "/v1/pickup-orders";
	public static final String PRINT_ORDER_URL = "/v1/parcels/{}/labels";
	// https://geoapi.dpd.cz/v1/parcels/12345678901234/labels
	public static final String API_KEY = "3e012067b1ddc0623b8a5712ebbe4be4";
	
	public static void main(String[] args) {
		
	}
	
	/**
	[
	    {
	        "customerAddress": {
	            "id": 15769904
	        },
	        "date": "2023-09-22",
	        "note": "Call before arrival"
	    },
	    {
	        "parcel": {
	            "parcelNumber": "13815045502659"
	        },
	        "date": "2023-09-22",
	        "note": "Call before arrival"
	    },
	    {
	        "customer": {
	            "dsw": "62603456789"
	        },
	        "arbitraryAddress": {
	            "info": {
	                "name1": "John Doe",
	                "name2": "John Doe",
	                "contact": {
	                    "person": "John Doe",
	                    "phone": "123 456 789",
	                    "email": "lanhaoooo@163.com"
	                }
	            },
	            "address": {
	                "street": "Example Street 368/23",
	                "postalCode": "40001",
	                "city": "Praha 8",
	                "houseNumber": "string",
	                "country": {
	                    "isoAlpha3": "CZE"
	                }
	            }
	        },
	        "date": "2023-09-22",
	        "note": "Call before arrival"
	    }
	]
**/	
//	{
//		"code": "UnauthorizedApiKeyNotProvidedError",
//		"message": "Unauthorized, the API key was not provided"
//	}
}
